/*
 * This file is part of Formin Media Library
 * 
 */
package formin.mediaLibrary.gui.components;

import javax.swing.JPanel;



/**
 * 
 * 
 * @author formin
 *
 */
public class DetailsMainPanel extends JPanel {
	//==========================================================================
    // Static attributes
    //==========================================================================

	/**
	 * 
	 */
	private static final long serialVersionUID = -8633818600446166630L;
	
	

	private final static int MOVIES_MAIN_DETAILS = 2;
	private final static int MUSIC_MAIN_DETAILS = 3;
	private final static int PICTURE_MAIN_DETAILS = 4;
	

	private final static int TV_SEASONS_DETAILS = 6;
	private final static int TV_EPISODES_DETAILS = 7;
	
	
	//==========================================================================
    // Attributes
    //==========================================================================
	private String selectedDetailPanel;
	
	private DetailsTVPanel tvDetailsPanel;
	private DetailsTVShowsPanel tvShowsDetailsPanel;
	private DetailsSettingsPanel settingsDetailsPanel;
    //==========================================================================
    // Constructors
    //==========================================================================
	public DetailsMainPanel(){
		tvDetailsPanel = new DetailsTVPanel();
		tvShowsDetailsPanel = new DetailsTVShowsPanel();
		settingsDetailsPanel = new DetailsSettingsPanel();
		add(settingsDetailsPanel);
		add(tvDetailsPanel);
		setDetailsDisplay(MediaTypePanel.MEDIA_TYPE_SETTINGS);
	}

    //==========================================================================
    // Getters
    //==========================================================================

    //==========================================================================
    // Setters
    //==========================================================================
	public void setDetailsDisplay(String name){
		
		if(name != selectedDetailPanel){
			
				settingsDetailsPanel.setVisible(false);
				tvDetailsPanel.setVisible(false);
			
			selectedDetailPanel = name;
			if(name == MediaTypePanel.MEDIA_TYPE_SETTINGS){
					settingsDetailsPanel.setVisible(true);
			}else if(name == MediaTypePanel.MEDIA_TYPE_TV){
				tvDetailsPanel.setVisible(true);
			}else if(name == MediaTypePanel.MEDIA_TYPE_MUSIC){
				//
			}
		}
		//
	}
    //==========================================================================
    // Inherited methods
    //==========================================================================

    //==========================================================================
    // Static methods
    //==========================================================================

}
